package cn.itheima.feign;

import cn.itheima.goods.vo.SetmealOverViewVO;
import cn.itheima.goods.vo.SetmealVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="sky-goods",contextId = "setmeal")
public interface SetmealClient {
    @GetMapping("/admin/setmeal/{id}")
    SetmealVO findById(@PathVariable("id") Long id);

    @GetMapping("/admin/setmeal/getCountByStatus")
    SetmealOverViewVO getCountByStatus();

}
